package List.SequenceList;

public class Test {
    public static void main(String[] args) {
        SequenceList<String> list = new SequenceList<>(10);
        list.insert("迪丽热巴");
        list.insert("古力娜扎");
        list.insert("马尔扎哈");
        list.insert(1,"小鸟丫丫");
        for(String s : list){
            System.out.print(s+" ");
        }
        System.out.println();
        System.out.println(list.toString());
        System.out.println(list.get(3));
        System.out.println(list.remove(1));
        System.out.println(list.toString());
        list.clear();
        System.out.println(list.isEmpty());
        System.out.println(list.length());
    }
}
